package com.zry.simpleBlog.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 */
@Data
public class UpdatePswDTO {

    @Length(min = 4)
    @NotBlank(message = "原始密码不能为空")
    private String originalPassword;

    @Length(min = 4)
    @NotBlank(message = "密码不能为空")
    private String password;

    @Length(min = 4)
    @NotBlank(message = "密码不能为空")
    private String checkPassword;
}
